﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ShopSpace.Core
{
	/// <summary>
	/// Represents a person in this system.
	/// This is designed to be linked to a User entity in an external system (e.g. DotNetNuke), 
	/// via the Username property.  The DisplayName will be captured upon linking, but may 
	/// need to be manually updated if the User changes it in the external system.
	/// </summary>
	public class Person : Entity
	{
		public static readonly Person NOT_ASSIGNED = new Person(0, "", "Not Assigned");

		protected Person()
		{
		}

		public Person(int portalId, string userName, string displayName)
		{
			this.PortalId = portalId;
			this.Username = userName;
			this.DisplayName = displayName;
		}

		public virtual int PortalId
		{
			get;
			protected set;
		}

		public virtual string Username
		{
			get;
			set;
		}

		public virtual string DisplayName
		{
			get;
			set;
		}
	}
}